<style>

    #hor-minimalist-b {
        background: none repeat scroll 0 0 ;
        border-collapse: collapse;
        font-family: "Lucida Sans Unicode","Lucida Grande",Sans-Serif;
        font-size: 12px;
        margin: 20px;
        text-align: left;
        width: 100%;
    }
    #hor-minimalist-b th {
        border-bottom: 2px solid #6678B1;
        color: #003399;
        font-size: 14px;
        font-weight: normal;
        padding: 10px 8px;
    }
    #hor-minimalist-b td {
        border-bottom: 1px solid #CCCCCC;
        color: #666699;
        padding: 6px 8px;
    }
    .navWeek{
        margin-top: 10px;
        padding: 20px;
        background-color: #FCFCFF;
        border: 1px solid #D6D6D6;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        overflow: hidden;
    }
    .navWeek select {
        padding:3px;
        width: 200px;
        font-weight: bold;
    }
    #tt{
        margin-top: 10px;
        background-color: #FCFCFF;
        border: 1px solid #D6D6D6;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        padding-right: 40px;
        padding-top: 20px;
        position: relative;
        overflow: hidden;
    }
    #tt #previous{
        position: absolute;
        padding: 5px;
        top: 10px;
        left: 10px;
        background: #660000 center;
        color: white;
    }
    #tt #next{
        position: absolute;
        padding: 5px;
        top: 10px;
        right: 10px;
        background: #660000 center;
        color: white;
    }
    #showAll{
        background-color: white;
    }
    #newspaper-a {
        border: 1px solid #6699CC;
        border-collapse: collapse;
        font-size: 12px;
        margin: 20px;
        text-align: left;
        width: 480px;
    }

    #newspaper-a th {
        border-bottom: 1px dashed #6699CC;
        color: #003399;
        font-size: 14px;
        font-weight: normal;
        padding: 12px 17px;
    }

    #newspaper-a td {
        color: #666699;
        padding: 7px 17px;
    }
    #newspaper-a tbody tr:hover {
        background-color: #ffff99;
    }
    #newspaper-a tbody tr.odd td {
        background-color: #f9f9f9;
    }
    /*    #newspaper-a tbody{
            overflow-x: hidden;
            overflow-y: scroll;
            height: 100px;
        }*/
</style>
<?php
$lstSchedules = $viewModel->get("lstSchedule");
$lstClasses = $viewModel->get("lstClass");
?>
<div id="leftcol">
    <div class="navWeek">
        Chọn lớp:
        <select id="sltClass">
            <option value="-1">------------</option>
            <?php
            if (count($lstClasses) > 0) {

                foreach ($lstClasses AS $lstClass) {
                    ?>
                    <option value="<?php echo $lstClass->classes_id; ?>"><?php echo $lstClass->classname; ?></option>
                    <?php
                }
            } else {
                ?>
                <option>Empty Class</option>
                <?php
            }
            ?>
        </select>
        <span id="listAll" style="display: none;">
            - <a href="#">Xem toàn bộ</a>
        </span>
    </div>
    <div>
        <input type="hidden" id="fromInputDate" value="<?php echo $viewModel->get("setInputFrom") ?>" />
    </div>
    <div id="tt">
        <a id="previous" class="" onclick="getListTable('2')" href="#">Tuần trước</a>
        <a id="next" class="" onclick="getListTable('1')" href="#">Tuần tới</a>
        <table id="hor-minimalist-b">
            <thead>
                <tr>
                    <th scope="col">Lớp</th>
                    <th scope="col">Ngày</th>
                    <th scope="col">Tiết học</th>
                    <th scope="col">Lý thuyết</th>
                    <th scope="col">Thực hành</th>
                </tr>
            </thead>
            <tbody>
                <?php
                if($lstSchedules == NULL){
                ?>
                <tr><td colspan="5">Chưa có lịch học</td></tr>
                <?php
                }else{
                foreach ($lstSchedules AS $lstSchedule) {
                    ?>

                    <tr>
                        <td><?php echo $lstSchedule->classname; ?></td>
                        <td><?php echo Helper::reConvertDate($lstSchedule->dates); ?></td>
                        <td><?php echo $lstSchedule->lession_name; ?></td>
                        <td><?php echo $lstSchedule->theory; ?></td>
                        <td><?php echo $lstSchedule->lab; ?></td>
                    </tr>
                    <?php
                }}
                ?>

            </tbody>

        </table>
    </div>
    <div id="showAll" style="display: none; max-height: 99%; overflow-y: auto;">
        <table id="newspaper-a">
            <thead>
                <tr>
                    <th scope="col">Ngày</th>
                    <th scope="col">Tiết học</th>
                    <th scope="col">Lý thuyết</th>
                    <th scope="col">Thực hành</th>
                </tr>
            </thead>
            <tbody>

            </tbody>
        </table>
    </div>
</div>